<template>
	<div class="dh">
		<senav :tid="tid"></senav>
		<tuijian :tid="tid"></tuijian>
		<appop></appop>
	</div>
</template>

<script>
	import senav from "@/components/erji/senav"
	import tuijian from "@/components/erji/tuijian";
	import appop from "@/components/appop";
	export default{
		name:"donghua",
		created(){
		  this.$store.commit("setCurTid",{
					curTid:this.$route.params.tid
				})
		},
		data(){
			return{
				tid:this.$route.params.tid
			}
		},
		components:{
			appop,
			tuijian,
			senav
		},
		methods:{
			
		},
		watch:{
			$route(newValue,oldValue){
				if(newValue.path.indexOf("channel")){
					this.$store.commit("setCurTid",{
						curTid:newValue.params.tid
					})
					this.tid=newValue.params.tid
					console.log(newValue)
				}
			}
		}
	}
</script>

<style lang="scss">
	
</style>